<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="Registration">

<xsl:choose>
	<xsl:when test="/Registration/@fromPage='/login.aspx'">

<center>
<div style="padding-bottom:20px;width:70%;" align="left">
<div style="font-family:tahoma;font-size:12pt;color:black;
padding-bottom:5px;">
<img src="/imgs/warning.gif"/>&#32;&#32;<b>Messaggio Importante</b>
</div>
<div style="padding-bottom:2px;">
Il nome e la password che hai inserito non corrispondono a nessuno profilo nel nostro database. Per favore assicurati di aver correttamente inserito il tuo nome e la tua password. Se hai dimenticato la password e vuoi accedere al tuo profilo <a href="/help/sendMeMyPassword.aspx">clicca qui</a>.
</div>
</div>

<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" width="70%">
<form name="formLogin" method="post" action="{@action}">
<input type="hidden" name="FORM_ID" value="{concat('FORM',@ID)}"></input>
  <xsl:choose>
    <xsl:when test='@hostkey != ""'>
      <input type="hidden" name="hostkey" value="{@hostkey}"></input>
    </xsl:when>
  </xsl:choose>
  <xsl:choose>
    <xsl:when test='@returnto != ""'>
      <input type="hidden" name="returnto" value="{@returnto}"></input>
    </xsl:when>
  </xsl:choose>
  <TBODY>
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-t-back.gif" bgcolor="white"></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tr.gif" width="8" border="0"/></TD>
		</TR>
		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="100%" align="center" style="padding:2px;" bgcolor="white">

<xsl:for-each select="Question">
<xsl:choose>
	<xsl:when test='@Type="8"'>
		<img width="125px" height="10px" src="/imgs/spacer.gif"/>
		<div>
		<center>
		<input type="hidden" name="fromPage" value="{/Registration/@fromPage}"></input>
		<input type="image" src="/imgs/entra.gif" name="{concat('SUBMIT',@ID)}" value="{@Description}"></input>
		<div style="padding-top:10px;" class="body_10px_red"><a style="text-decoration: none;" href="/help/sendMeMyPassword.aspx">Password dimenticata?</a></div>
		</center>
		</div>
	</xsl:when>
	<xsl:when test='@Type="9"'>
		<div><h4><xsl:value-of select="@Description"/></h4></div>
	</xsl:when>
	<xsl:when test='@Type="10"'>
		<div><xsl:value-of select="@Comment"/></div>
	</xsl:when>
	<xsl:otherwise>
		<img width="125px" height="5px" src="/imgs/spacer.gif"/>
		<div>
		<xsl:value-of select="@Description"/><br/>

		<xsl:if test='@Type="11"'>
			<input type="text" ID="T{@ID}" name="username" size="{@P2}" maxlength="{@P1}"></input>
			<br/><span class="body_10px_red"><xsl:value-of select="@Comment"/></span>
		</xsl:if>

		<xsl:if test='@Type="12"'>
			<input type="password" ID="T{@ID}" name="password" size="{@P2}" maxlength="{@P1}"></input>
			<div class="b10b" style="padding-top:5px;"><input type="checkbox" name="rememberme" unchecked="true"><a style="text-decoration:underline;color:black;" href="/help/rememberme.aspx">Ricordati di me</a></input></div>
		</xsl:if>

		<xsl:if test='@Type="6"'>
			<img src="{@Comment}" border="1"/>
		</xsl:if>

		</div>
	</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

<img width="125px" height="5px" src="/imgs/spacer.gif"/>
<hr/>
<img width="125px" height="5px" src="/imgs/spacer.gif"/>

<div style="padding-bottom:5px;">
<center>Non sei ancora registrato?<br/></center>
</div>
<div>
<xsl:choose>
	<xsl:when test='/Registration/@switchto=1'>
		<center><a href="/registration/switchto.aspx"><img border="0" src="/imgs/registrati.gif"/></a></center>
	</xsl:when>
	<xsl:otherwise>
		<center><a href="/registration/registration2.aspx"><img border="0" src="/imgs/registrati.gif"/></a></center>
	</xsl:otherwise>
</xsl:choose>
</div>

			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-bl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-b.gif" bgcolor="white"><IMG height="8" src="/imgs/pvts/box-b.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-br.gif" width="8" border="0"/></TD>
		</TR>
	</TBODY>
</form>
</TABLE>

</center>

	</xsl:when>
	<xsl:otherwise>
<img width="125px" height="1px" src="/imgs/spacer.gif"/>
	
<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" >
<form name="formLogin" method="post" action="{@action}">
<input type="hidden" name="FORM_ID" value="{concat('FORM',@ID)}"></input>
  <xsl:choose>
    <xsl:when test='@hostkey != ""'>
      <input type="hidden" name="hostkey" value="{@hostkey}"></input>
    </xsl:when>
  </xsl:choose>
  <xsl:choose>
    <xsl:when test='@returnto != ""'>
      <input type="hidden" name="returnto" value="{@returnto}"></input>
    </xsl:when>
  </xsl:choose>
  <TBODY>
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-t-back.gif"  bgcolor="white"></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tr.gif" width="8" border="0"/></TD>
		</TR>
		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="100%" align="left" style="padding:2px;" bgcolor="white">

<xsl:for-each select="Question">
<xsl:choose>
	<xsl:when test='@Type="8"'>
		<img width="125px" height="10px" src="/imgs/spacer.gif"/>
		<div>
		<input type="hidden" name="fromPage" value="{/Registration/@fromPage}"></input>
		<center>
		<input type="image" src="/imgs/entra.gif" name="{concat('SUBMIT',@ID)}" value="{@Description}"></input>
		<div style="padding-top:10px;" class="body_10px_red"><a style="text-decoration: none;" href="/help/sendMeMyPassword.aspx">Password dimenticata?</a></div>
		</center>
		</div>
	</xsl:when>
	<xsl:when test='@Type="9"'>
		<div><h4><xsl:value-of select="@Description"/></h4></div>
	</xsl:when>
	<xsl:when test='@Type="10"'>
		<div><xsl:value-of select="@Comment"/></div>
	</xsl:when>
	<xsl:otherwise>
		<div>
		<xsl:value-of select="@Description"/><br/>

		<xsl:if test='@Type="11"'>
			<input type="text" ID="T{@ID}" name="username" size="{@P2}" maxlength="{@P1}"></input>
			<br/><span class="body_10px_red"><xsl:value-of select="@Comment"/></span>
		</xsl:if>

		<xsl:if test='@Type="12"'>
			<input type="password" ID="T{@ID}" name="password" size="{@P2}" maxlength="{@P1}"></input>
			<div class="b10b" style="padding-top:5px;"><input type="checkbox" name="rememberme" unchecked="true"><a style="text-decoration:underline;color:black;" href="/help/rememberme.aspx">Ricordati di me</a></input></div>
		</xsl:if>

		<xsl:if test='@Type="6"'>
			<img src="{@Comment}" border="1"/>
		</xsl:if>

		</div>
	</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

<img width="125px" height="5px" src="/imgs/spacer.gif"/>
<hr/>
<img width="125px" height="5px" src="/imgs/spacer.gif"/>

<div class="body_10px" style="padding-bottom:5px; text-align:center;">
Non sei ancora registrato?<br/>
</div>
<div>
<xsl:choose>
	<xsl:when test='/Registration/@switchto=1'>
		<center><a href="/registration/switchto.aspx"><img border="0" src="/imgs/registrati.gif"/></a></center>
	</xsl:when>
	<xsl:otherwise>
		<center><a href="/registration/registration2.aspx"><img border="0" src="/imgs/registrati.gif"/></a></center>
	</xsl:otherwise>
</xsl:choose>
</div>

			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-bl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-b.gif" bgcolor="white"><IMG height="8" src="/imgs/pvts/box-b.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-br.gif" width="8" border="0"/></TD>
		</TR>
	</TBODY>
</form>
</TABLE>

	</xsl:otherwise>
</xsl:choose>

</xsl:template>

</xsl:stylesheet>